Skip to content

Update A2A demo to use official @a2a-js/sdk package#22

Merged
venables merged 2 commits intomainfrom
venables/a2a-official
Jul 8, 2025
Merged

Update A2A demo to use official @a2a-js/sdk package#22
venables merged 2 commits intomainfrom
venables/a2a-official

Conversation

@venables
Copy link
Contributor

@venables venables commented Jul 4, 2025

The demo was using a2a-js which is a 3rd party package. This updates the demo to use the official @a2a-js/sdk package.

The demo was using `a2a-js` which is a 3rd party package. This updates
the demo to use the official `@a2a-js/sdk` package.
)
const {
metadata,
contextId: _contextId,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesn't appear to be used

Copy link
Contributor Author

@venables venables Jul 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right -- so google's SDK adds a contextId variable on the message upon receive, but we actually dont want to hash with this value there since the client does not have it (so the values will not match). So this pulls it out of the parsedMessage and tags it with an underscore to mark it as unused, but expecetd.

Copy link
Contributor

@edspencer edspencer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple of small things but otherwise LGTM

@venables venables merged commit 7b63ca0 into main Jul 8, 2025
2 checks passed
@venables venables deleted the venables/a2a-official branch July 8, 2025 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants